<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
>
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
<div class="timo-detail-page">
    <div class="timo-detail-title">应用信息</div>
    <table class="layui-table timo-detail-table">
        <tbody>
        <tr>
            <th width='100px'>应用名称</th>
            <td th:text="${entity.name}"></td>
            <th width='100px'>appName</th>
            <td th:text="${entity.appName}"></td>
        </tr>
        </tbody>
    </table>

    <div class="timo-detail-title">服务节点</div>
    <table class="layui-table timo-detail-table">
        <tbody>
        <tr>
            <th>主机IP</th>
            <th>端口</th>
            <th>授权token</th>
            <th>网络协议</th>
            <th>操作系统</th>
            <th>CPU可用核心数</th>
            <th>总共内存</th>
            <th>剩余内存</th>
        </tr>
        <tr th:each="item:${list}">
            <td th:text="${item.endpoint.host}"></td>
            <td th:text="${item.endpoint.port}"></td>
            <td th:text="${item.endpoint.authToken}"></td>
            <td th:text="${#dicts.keyValue('NET_PROTOCOL', item.endpoint.protocol.protocol)}"></td>
            <td th:text="${item.resourceInfo.osName + ' ' + item.resourceInfo.osVersion}"></td>
            <td th:text="${item.resourceInfo.coreNum}"></td>
            <td th:text="${item.resourceInfo.totalMemory + ' MB'}"></td>
            <td th:text="${item.resourceInfo.freeMemory + ' MB'}"></td>
        </tr>
        </tbody>
    </table>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>